package com.company.ThreadDemo;

public class SleepDemo {
    public static void main(String[] args) throws InterruptedException {
        int num = 10;
        while(true){
            if(num<0)break;
            Thread.sleep(1000);
            System.out.println(num--);
        }

    }
}
